package com.kobold.rules.groovy;

public class GroovyCompilerConfigurationFactory {

    public static GroovyCompilerConfiguration getCacheDefault() {
        GroovyCompilerConfiguration configuration = (GroovyCompilerConfiguration) GroovyCompilerConfiguration.DEFAULT;
        configuration.setEnableCache(true);
        return configuration;
    }

    public static GroovyCompilerConfiguration getNocacheDefault() {
        GroovyCompilerConfiguration configuration = (GroovyCompilerConfiguration) GroovyCompilerConfiguration.DEFAULT;
        configuration.setEnableCache(false);
        return configuration;
    }
}
